package com.xjtu.platform.admin;

import com.xjtu.platform.admin.dto.AddBookDto;
import com.xjtu.platform.admin.dto.DeleteBookDto;
import com.xjtu.platform.admin.dto.EditBookDto;
import com.xjtu.platform.admin.entity.AllAuthor;
import com.xjtu.platform.admin.entity.AuthorList;
import org.springframework.stereotype.Service;

/**
 * @program: platform
 * @description: 书籍处理业务层
 * @author: Wushanxu
 * @create: 2023-11-15 22:32
 **/
@Service
public interface BookService {
    String addBook(AddBookDto addBookDto);

    boolean editBook(EditBookDto editBookDto);

    boolean deleteBook(DeleteBookDto deleteBookDto);


    boolean addBookFile(String bookId, String filename, String fileUrl);

    boolean modifyBookFile(String bookId, String filename, String fileUrl);

    AllAuthor getAuthorList();
}
